package edu.gatech.ors.mrsim.basictasks;

import edu.gatech.ors.mrsim.core.SimTask;

public class ReceiveMessage extends SimTask{
    public SendMessage packet;
    public ReceiveMessage(SendMessage packet){
	this.packet = packet;
    }
    public String toString(){
	return "ReceiveMessage(from="+packet.source+",data="+packet.payload+")";
    }
    public String getSender(){
	return packet.source;
    }
    public Object getPayload(){
	return packet.payload;
    }
}
